from django.contrib import admin

from orders.models import OrderInfo, OrderGoods


# Register your models here.
@admin.register(OrderInfo)
class GoodsAdmin(admin.ModelAdmin):
    # 显示列表
    list_display = ['order_id', 'user', 'address', 'total_count', 'total_amount', 'freight', 'pay_method',
                    'status']


@admin.register(OrderGoods)
class GoodsAdmin(admin.ModelAdmin):
    # 显示列表
    list_display = ['order', 'sku', 'count', 'price', 'comment', 'score', 'is_anonymous',
                    'is_commented']